<?php
class user_roleModel extends viewModel{
	public $table = 'user_role';
	public $view = array(
		'user' => array(
			'type' => "inner",
			"on" => "user_role.uid=user.uid",
		),
		'role' => array(
			'type' => 'inner',
			'on' => 'role.rid=user_role.rid',
		)				
	);	
}















?>